

package com.kimo.shop.bean.app.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.kimo.shop.common.serializer.json.ImgJsonSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author kimo-taozhouchuan
 */
@ApiModel("我的订单-订单项")
@Data
public class MyOrderItemDto {

    @ApiModelProperty(value = "商品图片", required = true)
    @JsonSerialize(using = ImgJsonSerializer.class)
    private String pic;

    @ApiModelProperty(value = "商品名称", required = true)
    private String prodName;

    @ApiModelProperty(value = "评论时间", required = true)
    private Date recTime;

    @ApiModelProperty(value = "订单号",required=true)
    private String orderNumber;

    @ApiModelProperty(value = "商品数量", required = true)
    private Integer prodCount;

    @ApiModelProperty(value = "商品价格", required = true)
    private Double price;

    @ApiModelProperty(value = "产品购买花费积分",required=true)
    private Integer useScore;

    @ApiModelProperty(value = "skuName", required = true)
    private String skuName;

    @ApiModelProperty(value = "订单项id", required = true)
    private Long orderItemId;

    @ApiModelProperty(value = "商品id", required = true)
    private Long prodId;

    @ApiModelProperty(value = "规格id", required = true)
    private Long skuId;

    @ApiModelProperty(value = "默认是1，表示正常状态, -1表示删除, 0下架", required = true)
    private Integer prodStatus;

    @ApiModelProperty(value = "评论状态： 0 未评价  1 已评价", required = true)
    private Integer commSts;
}
